import java.util.Scanner;

public class test08 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入字符串");
        String s = sc.nextLine();

        String[] s1 = s.split(" ");
        for (String s2 : s1) {
            char[] chars = s2.toCharArray();
            for (int i = chars.length-1; i >=0; i--) {
                System.out.print(chars[i]);
            }
        }
    }
}
